<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/sys/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查看产地环境信息</title>
<%@ include file="/WEB-INF/sys/include/css.jsp"%>
</head>
<body>
<form id="form" action="#" method="post">
<div class="form">
	<div class="group">
		<div class="label">产地名称:</div>
		<div class="item">
			<input type="text" readonly="readonly" disabled="disabled" id="proName" name="proName" value="${provenance.proName }" />
	    </div>
	</div>
	
	<div class="group">
		<div class="label">上报人员:</div>
		<div class="item">
			<input type="text" id="subName" readonly="readonly" disabled="disabled" name="subName" value="${provenance.subName }" />
	    </div>
	</div>
	<div class="group">
		<div class="label">上报日期:</div>
		<div class="item"><input type="text" readonly="readonly" disabled="disabled" name="subtime" id="subtime" ltype="date" value="<fmt:formatDate value="${provenance.subtime }" pattern="yyyy-MM-dd" />" /></div>
		
	</div>
	
	<div class="group">
		<div class="label">备注:</div>
		<div class="item"><textarea id="remark" readonly="readonly" disabled="disabled" name="remark">${provenance.remark }</textarea></div>
	</div>
	
	<c:if test="${provenance.subAttach != '' && provenance.subAttach != null}">
	<div class="group">
		<div class="label">产地环境附件:</div>
		<div class="text">
			<a href="javascript:;" onclick="down('${filepath}/pro_attachment/${provenance.subAttach}')">下载附件</a>
		</div>
	</div>
	</c:if>

	<c:if test="${provenanceImgs != '' && provenanceImgs != null}">
	<div class="group">
		<div class="label">产地环境图片:</div>
		<div class="item">
		<c:forEach items="${provenanceImgs}" var="img">
			<p><img id="provenanceimg" alt="产地图片" src="${filepath}/pro_imgs/${img.imgPath}" width="300" /></p>
		</c:forEach>
		</div>
	</div>
	</c:if>
	<div class="buttons">
		<button type="button" id="cancel1">返回</button>
	</div>
</div>
</form>
<%@ include file="/WEB-INF/sys/include/script.jsp" %>
<script type="text/javascript">
$(function() {
	$("#form").ligerForm({inputWidth: 300})
	$("#cancel1").click(function(){
		UiUtil.closeForm();
	});
	
});
function down(url){
	artConfirm('下载附件', '确认下载吗？',function(){
		window.open(url, '_blank');
	})
	
}
</script>
</body>
</html>